//
//  FSNavigationController.swift
//  fushp_weibo
//
//  Created by fushp on 2017/11/9.
//  Copyright © 2017年 fushp. All rights reserved.
//

import UIKit

class FSNavigationController: UINavigationController {

    override func viewDidLoad() {
        super.viewDidLoad()
  //     navigationBar.isHidden  = true
        // Do any additional setup after loading the view.
    }
    //重写push
    override func pushViewController(_ viewController: UIViewController, animated: Bool) {
        if (childViewControllers.count > 0) {
            viewController.hidesBottomBarWhenPushed = true
        }
        super.pushViewController(viewController, animated: animated)
    }

}
